
package com.kugou.game.sdk.download;

import com.kugou.download.IConfig;
import com.kugou.download.IOperator;
import com.kugou.framework.download.BaseDownloadService;
import com.kugou.framework.download.DownloadConfig;
import com.kugou.game.sdk.core.FolderManager;
import com.kugou.game.sdk.core.SDKControler;

/**
 * 描述:下载服务
 * 
 * @author chenys
 * @since 2013-8-2 下午2:42:39
 */
public class DownloadService extends BaseDownloadService {

    @Override
    public void onCreate() {
        SDKControler.setContext(getApplicationContext());
        super.onCreate();
    }

    @Override
    protected IOperator createOperator() {
        return new DownloadInfoSaver(this);
    }

    @Override
    protected IConfig createConfig() {
        return new DownloadConfig(this);
    }

    @Override
    protected String getLogFilePath() {
        return FolderManager.LOG_FILE_PATH;
    }

    @Override
    protected boolean needSaveLog() {
        return false;
    }

}
